home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 25
/
Cream of the Crop 25.iso
/
doom
/
quake_ad.zip
/
WAIT4P99.ZIP
/
WAIT4PL.QC
< prev
next >
Wrap
Text File
|
1997-03-14
|
21KB
|
390 lines
void() WaitforPlayer =
{
local float timelimit;
local float fraglimit;
local float NowInGame;
local entity e;
local string conn;
local float ShouldConnect;
local float RoundedTime;
ShouldConnect = cvar("temp1"); //number of players to connect
timelimit = cvar("timelimit") * 60;
RoundedTime=floor(time);
if (RoundedTime < 1) Message=0;
if (RoundedTime > 250) RoundedTime=RoundedTime - 250;
if (ShouldConnect==0)
{
UseWait4Player=1;
return;
}
e = find(world, classname, "player");
while (e)
{
NowInGame=NowInGame+1;
e = find(e, classname, "player");
}
self.button0 = 0;//disable Fire,Jump,Use
self.button1 = 0;
self.button2 = 0;
self.pausetime = time + 3;//disable moving
if (ShouldConnect==2)
if (NowInGame==1) conn="1 Player found\nLooking for number 2 of 2...";
if (ShouldConnect==3)
{
if (NowInGame==1) conn="1 Player found\nLooking for number 2 of 3...";else
if (NowInGame==2) conn="2 Players found\nLooking for number 3 of 3...";
}
if (ShouldConnect==4)
{
if (NowInGame==1) conn="1 Player found\nLooking for number 2 of 4...";else
if (NowInGame==2) conn="2 Players found\nLooking for number 3 of 4...";else
if (NowInGame==3) conn="3 Players found\nLooking for number 4 of 4...";
}
if (ShouldConnect==5)
{
if (NowInGame==1) conn="1 Player found\nLooking for number 2 of 5...";else
if (NowInGame==2) conn="2 Players found\nLooking for number 3 of 5...";else
if (NowInGame==3) conn="3 Players found\nLooking for number 4 of 5...";else
if (NowInGame==4) conn="4 Players found\nLooking for number 5 of 5...";
}
if (ShouldConnect==6)
{
if (NowInGame==1) conn="1 Player found\nLooking for number 2 of 6...";else
if (NowInGame==2) conn="2 Players found\nLooking for number 3 of 6...";else
if (NowInGame==3) conn="3 Players found\nLooking for number 4 of 6...";else
if (NowInGame==4) conn="4 Players found\nLooking for number 5 of 6...";else
if (NowInGame==5) conn="5 Players found\nLooking for number 6 of 6...";
}
if (ShouldConnect==7)
{
if (NowInGame==1) conn="1 Player found\nLooking for number 2 of 7...";else
if (NowInGame==2) conn="2 Players found\nLooking for number 3 of 7...";else
if (NowInGame==3) conn="3 Players found\nLooking for number 4 of 7...";else
if (NowInGame==4) conn="4 Players found\nLooking for number 5 of 7...";else
if (NowInGame==5) conn="5 Players found\nLooking for number 6 of 7...";else
if (NowInGame==6) conn="6 Players found\nLooking for number 7 of 7...";
}
if (ShouldConnect==8)
{
if (NowInGame==1) conn="1 Player found\nLooking for number 2 of 8...";else
if (NowInGame==2) conn="2 Players found\nLooking for number 3 of 8...";else
if (NowInGame==3) conn="3 Players found\nLooking for number 4 of 8...";else
if (NowInGame==4) conn="4 Players found\nLooking for number 5 of 8...";else
if (NowInGame==5) conn="5 Players found\nLooking for number 6 of 8...";else
if (NowInGame==6) conn="6 Players found\nLooking for number 7 of 8...";else
if (NowInGame==7) conn="7 Players found\nLooking for number 8 of 8...";
}
if (ShouldConnect==9)
{
if (NowInGame==1) conn="1 Player found\nLooking for number 2 of 9...";else
if (NowInGame==2) conn="2 Players found\nLooking for number 3 of 9...";else
if (NowInGame==3) conn="3 Players found\nLooking for number 4 of 9...";else
if (NowInGame==4) conn="4 Players found\nLooking for number 5 of 9...";else
if (NowInGame==5) conn="5 Players found\nLooking for number 6 of 9...";else
if (NowInGame==6) conn="6 Players found\nLooking for number 7 of 9...";else
if (NowInGame==7) conn="7 Players found\nLooking for number 8 of 9...";else
if (NowInGame==8) conn="8 Players found\nLooking for number 9 of 9...";
}
if (ShouldConnect==10)
{
if (NowInGame==1) conn="1 Player found\nLooking for number 2 of 10...";else
if (NowInGame==2) conn="2 Players found\nLooking for number 3 of 10...";else
if (NowInGame==3) conn="3 Players found\nLooking for number 4 of 10...";else
if (NowInGame==4) conn="4 Players found\nLooking for number 5 of 10...";else
if (NowInGame==5) conn="5 Players found\nLooking for number 6 of 10...";else
if (NowInGame==6) conn="6 Players found\nLooking for number 7 of 10...";else
if (NowInGame==7) conn="7 Players found\nLooking for number 8 of 10...";else
if (NowInGame==8) conn="8 Players found\nLooking for number 9 of 10...";else
if (NowInGame==9) conn="9 Players found\nLooking for number 10 of 10...";
}
if (ShouldConnect==11)
{
if (NowInGame==1) conn="1 Player found\nLooking for number 2 of 11...";else
if (NowInGame==2) conn="2 Players found\nLooking for number 3 of 11...";else
if (NowInGame==3) conn="3 Players found\nLooking for number 4 of 11...";else
if (NowInGame==4) conn="4 Players found\nLooking for number 5 of 11...";else
if (NowInGame==5) conn="5 Players found\nLooking for number 6 of 11...";else
if (NowInGame==6) conn="6 Players found\nLooking for number 7 of 11...";else
if (NowInGame==7) conn="7 Players found\nLooking for number 8 of 11...";else
if (NowInGame==8) conn="8 Players found\nLooking for number 9 of 11...";else
if (NowInGame==9) conn="9 Players found\nLooking for number 10 of 11...";else
if (NowInGame==10) conn="10 Players found\nLooking for number 11 of 11...";
}
if (ShouldConnect==12)
{
if (NowInGame==1) conn="1 Player found\nLooking for number 2 of 12...";else
if (NowInGame==2) conn="2 Players found\nLooking for number 3 of 12...";else
if (NowInGame==3) conn="3 Players found\nLooking for number 4 of 12...";else
if (NowInGame==4) conn="4 Players found\nLooking for number 5 of 12...";else
if (NowInGame==5) conn="5 Players found\nLooking for number 6 of 12...";else
if (NowInGame==6) conn="6 Players found\nLooking for number 7 of 12...";else
if (NowInGame==7) conn="7 Players found\nLooking for number 8 of 12...";else
if (NowInGame==8) conn="8 Players found\nLooking for number 9 of 12...";else
if (NowInGame==9) conn="9 Players found\nLooking for number 10 of 12...";else
if (NowInGame==10) conn="10 Players found\nLooking for number 11 of 12...";else
if (NowInGame==11) conn="11 Players found\nLooking for number 12 of 12...";
}
if (ShouldConnect==13)
{
if (NowInGame==1) conn="1 Player found\nLooking for number 2 of 13...";else
if (NowInGame==2) conn="2 Players found\nLooking for number 3 of 13...";else
if (NowInGame==3) conn="3 Players found\nLooking for number 4 of 13...";else
if (NowInGame==4) conn="4 Players found\nLooking for number 5 of 13...";else
if (NowInGame==5) conn="5 Players found\nLooking for number 6 of 13...";else
if (NowInGame==6) conn="6 Players found\nLooking for number 7 of 13...";else
if (NowInGame==7) conn="7 Players found\nLooking for number 8 of 13...";else
if (NowInGame==8) conn="8 Players found\nLooking for number 9 of 13...";else
if (NowInGame==9) conn="9 Players found\nLooking for number 10 of 13...";else
if (NowInGame==10) conn="10 Players found\nLooking for number 11 of 13...";else
if (NowInGame==11) conn="11 Players found\nLooking for number 12 of 13...";else
if (NowInGame==12) conn="12 Players found\nLooking for number 13 of 13...";
}
if (ShouldConnect==14)
{
if (NowInGame==1) conn="1 Player found\nLooking for number 2 of 14...";else
if (NowInGame==2) conn="2 Players found\nLooking for number 3 of 14...";else
if (NowInGame==3) conn="3 Players found\nLooking for number 4 of 14...";else
if (NowInGame==4) conn="4 Players found\nLooking for number 5 of 14...";else
if (NowInGame==5) conn="5 Players found\nLooking for number 6 of 14...";else
if (NowInGame==6) conn="6 Players found\nLooking for number 7 of 14...";else
if (NowInGame==7) conn="7 Players found\nLooking for number 8 of 14...";else
if (NowInGame==8) conn="8 Players found\nLooking for number 9 of 14...";else
if (NowInGame==9) conn="9 Players found\nLooking for number 10 of 14...";else
if (NowInGame==10) conn="10 Players found\nLooking for number 11 of 14...";else
if (NowInGame==11) conn="11 Players found\nLooking for number 12 of 14...";else
if (NowInGame==12) conn="12 Players found\nLooking for number 13 of 14...";else
if (NowInGame==13) conn="13 Players found\nLooking for number 14 of 14...";
}
if (ShouldConnect==15)
{
if (NowInGame==1) conn="1 Player found\nLooking for number 2 of 15...";else
if (NowInGame==2) conn="2 Players found\nLooking for number 3 of 15...";else
if (NowInGame==3) conn="3 Players found\nLooking for number 4 of 15...";else
if (NowInGame==4) conn="4 Players found\nLooking for number 5 of 15...";else
if (NowInGame==5) conn="5 Players found\nLooking for number 6 of 15...";else
if (NowInGame==6) conn="6 Players found\nLooking for number 7 of 15...";else
if (NowInGame==7) conn="7 Players found\nLooking for number 8 of 15...";else
if (NowInGame==8) conn="8 Players found\nLooking for number 9 of 15...";else
if (NowInGame==9) conn="9 Players found\nLooking for number 10 of 15...";else
if (NowInGame==10) conn="10 Players found\nLooking for number 11 of 15...";else
if (NowInGame==11) conn="11 Players found\nLooking for number 12 of 15...";else
if (NowInGame==12) conn="12 Players found\nLooking for number 13 of 15...";else
if (NowInGame==13) conn="13 Players found\nLooking for number 14 of 15...";else
if (NowInGame==14) conn="14 Players found\nLooking for number 15 of 15...";
}
if (ShouldConnect==16)
{
if (NowInGame==1) conn="1 Player found\nLooking for number 2 of 16...";else
if (NowInGame==2) conn="2 Players found\nLooking for number 3 of 16...";else
if (NowInGame==3) conn="3 Players found\nLooking for number 4 of 16...";else
if (NowInGame==4) conn="4 Players found\nLooking for number 5 of 16...";else
if (NowInGame==5) conn="5 Players found\nLooking for number 6 of 16...";else
if (NowInGame==6) conn="6 Players found\nLooking for number 7 of 16...";else
if (NowInGame==7) conn="7 Players found\nLooking for number 8 of 16...";else
if (NowInGame==8) conn="8 Players found\nLooking for number 9 of 16...";else
if (NowInGame==9) conn="9 Players found\nLooking for number 10 of 16...";else
if (NowInGame==10) conn="10 Players found\nLooking for number 11 of 16...";else
if (NowInGame==11) conn="11 Players found\nLooking for number 12 of 16...";else
if (NowInGame==12) conn="12 Players found\nLooking for number 13 of 16...";else
if (NowInGame==13) conn="13 Players found\nLooking for number 14 of 16...";else
if (NowInGame==14) conn="14 Players found\nLooking for number 15 of 16...";else
if (NowInGame==15) conn="15 Players found\nLooking for number 16 of 16...";
}
centerprint (self,conn);
if (NowInGame==ShouldConnect)
{
local string timel;
bprint("All Players in the Game!\n");
self.pausetime=0;
if (timelimit!=0) //Adjusting timelimit if it's set
{
timelimit=timelimit+floor(time); //Old timelimit + actual time = new timelimit
timel=ftos(rint(timelimit/60)); //Converting to minutes and into a string
cvar_set("timelimit",timel); //Setting new timelimit
}
UseWait4Player=1; //Avoiding this whole Wait4Player - loop
centerprint (self,"╠┼╘'╙ ╥╧├╦ !");
return;
}
if (RoundedTime==10 && Message==0)
{
bprint("Player ");
bprint(ftos(NowInGame+1));
bprint(" ...where are you?\n");
Message=1;
}
if (RoundedTime==20 && Message==1)
{
bprint("Pssst...If you go wake up Player ");
bprint(ftos(NowInGame+1));
bprint(",\nI'll put you in God mode.\n");
Message=2;
}
if (RoundedTime==30 && Message==2)
{
bprint("Number ");
bprint(ftos(NowInGame+1));
bprint(" Player,\nour Number 1 delayer....\n");
Message=3;
}
if (RoundedTime==40 && Message==3)
{
bprint("We're all Message, Player ");
bprint(ftos(NowInGame+1));
bprint(" ....\nHello, McFly!!!\n");
Message=4;
}
if (RoundedTime==50 && Message==4)
{
bprint("You know, Message for Player ");
bprint(ftos(NowInGame+1));
bprint("\nreminds me of a story....\n");
Message=5;
}
if (RoundedTime==60 && Message==5)
{
bprint("Two Player ");
bprint(ftos(NowInGame+1));
bprint("'s walk into a bar....\n");
Message=6;
}
if (RoundedTime==70 && Message==6)
{
bprint("Is Player ");
bprint(ftos(NowInGame+1));
bprint(" running off\na removable drive or something?\n");
Message=7;
}
if (RoundedTime==80 && Message==7)
{
bprint("INSTRUCTIONS: Player ");
bprint(ftos(NowInGame+1));
bprint(" starts quake....\n");
Message=8;
}
if (RoundedTime==90 && Message==8)
{
bprint("Once Player ");
bprint(ftos(NowInGame+1));
bprint(" deigns to join us,\n let's toast 'em.\n");
Message=9;
}
if (RoundedTime==100 && Message==9)
{
bprint("ANY TIME NOW PLAYER ");
bprint(ftos(NowInGame+1));
bprint("!!!\n");
Message=10;
}
if (RoundedTime==110 && Message==10)
{
bprint("Player ");
bprint(ftos(NowInGame+1));
bprint(" is attempting to escape off the map.\n");
Message=11;
}
if (RoundedTime==120 && Message==11)
{
bprint("How long can Player ");
bprint(ftos(NowInGame+1));
bprint(" take setting the damn thing up?\n");
Message=12;
}
if (RoundedTime==130 && Message==12)
{
bprint("How many Player ");
bprint(ftos(NowInGame+1));
bprint("'s does it take to change a lightbulb?\n");
Message=13;
}
if (RoundedTime==140 && Message==13)
{
bprint("None, 'cause they don't DO anything.\nThey just SIT there.\n");
Message=14;
}
if (RoundedTime==150 && Message==14)
{
bprint("Um, I'm sure Player ");
bprint(ftos(NowInGame+1));
bprint(" will join us soon.\n");
Message=15;
}
if (RoundedTime==160 && Message==15)
{
bprint("Sigh. Player ");
bprint(ftos(NowInGame+1));
bprint(" is a toadie.\n");
Message=16;
}
if (RoundedTime==170 && Message==16)
{
bprint("Who votes that Player ");
bprint(ftos(NowInGame+1));
bprint(" gets\nleft outta this game (y/n)?\n");
Message=17;
}
if (RoundedTime==180 && Message==17)
{
bprint("Player ");
bprint(ftos(NowInGame+1));
bprint(" is starting to tick me off.\n");
Message=18;
}
if (RoundedTime==190 && Message==18)
{
bprint("Lunch break's over, Player ");
bprint(ftos(NowInGame+1));
bprint("!\n");
Message=19;
}
if (RoundedTime==200 && Message==19)
{
bprint("PLAYER ");
bprint(ftos(NowInGame+1));
bprint("!!!! GOON!\n");
Message=20;
}
if (RoundedTime==210 && Message==20)
{
bprint("It seems Player ");
bprint(ftos(NowInGame+1));
bprint(" has gone for a Moon Pie.\n");
Message=21;
}
if (RoundedTime==220 && Message==21)
{
bprint("Okay, when we start,\nI'm giving Player ");
bprint(ftos(NowInGame+1));
bprint(" only 5 hit points.\n");
Message=22;
}
if (RoundedTime==230 && Message==22)
{
bprint("Player ");
bprint(ftos(NowInGame+1));
bprint(" is a popo-head.\n");
Message=23;
}
if (RoundedTime==240 && Message==23)
{
bprint("Go give Player ");
bprint(ftos(NowInGame+1));
bprint(" a good swift kick in the...head.\n");
Message=24;
}
if (RoundedTime==250 && Message==24)
{
bprint("What is Player ");
bprint(ftos(NowInGame+1));
bprint(" Waiting for ?\n ├Φ≥Θ≤⌠φß≤ ???\n");
Message=0;
}
};